package fundamental;

public class SecondVehicle extends Vehicle {
    public Cand start_end = new Cand();
    public SecondVehicle(int cap, double fcost, double vcost) {
        super(cap, fcost, vcost);
    }

    @Override
    public void add(Point point) {
        super.add(point);
        if (point instanceof Customer) {
            loading += ((Customer) point).demand;
        }
        route.add(point);
    }
}
